package com.skyeye.product.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.skyeye.annotation.api.ApiModel;
import com.skyeye.annotation.api.ApiModelProperty;
import com.skyeye.common.entity.features.SkyeyeFlowable;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
@TableName(value = "erp_product_return")
@ApiModel("归还申请实体类")
public class ProductReturn extends SkyeyeFlowable {

    @TableField("title")
    @ApiModelProperty(value = "单据主题", required = "required")
    private String title;

    @TableField("oper_time")
    @ApiModelProperty(value = "单据日期", required = "required")
    private String operTime;

    @TableField("holder_id")
    @ApiModelProperty(value = "关联的客户/供应商/会员id")
    private String holderId;

    @TableField("holder_key")
    @ApiModelProperty(value = "关联的客户/供应商/会员的className")
    private String holderKey;

    @TableField(exist = false)
    @ApiModelProperty(value = "关联的客户/供应商/会员信息")
    private Map<String, Object> holderMation;

    @TableField("total_price")
    @ApiModelProperty(value = "总价钱")
    private String totalPrice;

    @TableField("remark")
    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField("other_state")
    @ApiModelProperty(value = "1 已审批完成 2 审批未完成",defaultValue = "2")
    private Integer otherState;

    @TableField(exist = false)
    @ApiModelProperty(value = "归还申请明细信息", required = "required,json")
    private List<ProductReturnChild> erpOrderItemList;

}
